<!DOCTYPE html>
<html>
<head>
    {{ HTML::style('ssw.css'); }}
</head>
    <body>
        <h1>Test App</h1>
        <p>
        User: 
        <?php
            $rt = TheApp::root();
        ?>
        @if (Auth::check()) 
            {{ Auth::user()->getKey() }} &nbsp;&nbsp;
            {{ Auth::user()->namefirst }}  
            {{ Auth::user()->namelast }}, 
            {{ Auth::user()->username }}, 
            &nbsp;
            <a href="{{ $rt }}logout">Logout</a>
        @else 
            (None)
            &nbsp;
            <a href="{{ $rt }}login">Login</a>
        @endif
        </p>
        <hr>
        <div class="header">
                <!-- 
                @section('navigation')
                -->
                <a href="{{ $rt }}start">Home</a>
                &nbsp;
                <a href="{{ $rt }}users">Users</a>
                &nbsp;
                @if (Auth::check()) 
                    <a href="{{ $rt }}info">Info</a>
                @else
                    <a href="{{ $rt }}register">Register</a>
                @endif
                &nbsp;
                <a href="{{ $rt }}fields">Fields</a>
                &nbsp;
                <a href="{{ $rt }}teams">Teams</a>
                <!-- @yield_section -->
        </div>
        <hr>
        @yield('content')
    </body>
</html>
